package com.zian.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;


import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.zian.enums.GenderEnum;
import com.zian.enums.GoodsSellStatusEnum;
import com.zian.enums.IsDeletedEnum;
import com.zian.enums.LockedEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
 @ApiModel("SysUser对象")
public class SysUser implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("登陆名称(默认为手机号)")
    private String username;

    @ApiModelProperty("MD5加密后的密码")
    private String password;

    @ApiModelProperty("性别")
    private GenderEnum gender;

    @ApiModelProperty("个性签名")
    private String introduceSign;

    @ApiModelProperty("注销标识字段(0-正常 1-已注销)")
    private IsDeletedEnum isDeleted;

    @ApiModelProperty("锁定标识字段(0-未锁定 1-已锁定)")
    private LockedEnum locked;

    @ApiModelProperty("注册时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private Date expireTime;




}
